package com.ruoyi.sale.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 售后管理对象 project_sale
 * 
 * @author 刘晋羽
 * @date 2025-08-07
 */
public class ProjectSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 售后id */
    @Excel(name = "售后id")
    private Long saleId;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 关联订单 */
    @Excel(name = "关联订单")
    private Long orderGl;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private String username;

    /** 自提点名称 */
    @Excel(name = "自提点名称")
    private String shopName;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private Long refundPrice;

    /** 售后类型 */
    @Excel(name = "售后类型")
    private String saleType;

    /** 售后原因 */
    @Excel(name = "售后原因")
    private String saleReason;

    /** 订单状态 */
    private Long status;

    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setOrderGl(Long orderGl) 
    {
        this.orderGl = orderGl;
    }

    public Long getOrderGl() 
    {
        return orderGl;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setShopName(String shopName) 
    {
        this.shopName = shopName;
    }

    public String getShopName() 
    {
        return shopName;
    }

    public void setRefundPrice(Long refundPrice) 
    {
        this.refundPrice = refundPrice;
    }

    public Long getRefundPrice() 
    {
        return refundPrice;
    }

    public void setSaleType(String saleType) 
    {
        this.saleType = saleType;
    }

    public String getSaleType() 
    {
        return saleType;
    }

    public void setSaleReason(String saleReason) 
    {
        this.saleReason = saleReason;
    }

    public String getSaleReason() 
    {
        return saleReason;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("time", getTime())
            .append("orderGl", getOrderGl())
            .append("username", getUsername())
            .append("shopName", getShopName())
            .append("refundPrice", getRefundPrice())
            .append("saleType", getSaleType())
            .append("saleReason", getSaleReason())
            .append("status", getStatus())
            .toString();
    }
}
